package com.chinawayltd.ews.sample.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdIsNull() {
            addCriterion("start_place_id is null");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdIsNotNull() {
            addCriterion("start_place_id is not null");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdEqualTo(Long value) {
            addCriterion("start_place_id =", value, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdNotEqualTo(Long value) {
            addCriterion("start_place_id <>", value, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdGreaterThan(Long value) {
            addCriterion("start_place_id >", value, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdGreaterThanOrEqualTo(Long value) {
            addCriterion("start_place_id >=", value, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdLessThan(Long value) {
            addCriterion("start_place_id <", value, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdLessThanOrEqualTo(Long value) {
            addCriterion("start_place_id <=", value, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdIn(List<Long> values) {
            addCriterion("start_place_id in", values, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdNotIn(List<Long> values) {
            addCriterion("start_place_id not in", values, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdBetween(Long value1, Long value2) {
            addCriterion("start_place_id between", value1, value2, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andStartPlaceIdNotBetween(Long value1, Long value2) {
            addCriterion("start_place_id not between", value1, value2, "startPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdIsNull() {
            addCriterion("end_place_id is null");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdIsNotNull() {
            addCriterion("end_place_id is not null");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdEqualTo(Long value) {
            addCriterion("end_place_id =", value, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdNotEqualTo(Long value) {
            addCriterion("end_place_id <>", value, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdGreaterThan(Long value) {
            addCriterion("end_place_id >", value, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdGreaterThanOrEqualTo(Long value) {
            addCriterion("end_place_id >=", value, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdLessThan(Long value) {
            addCriterion("end_place_id <", value, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdLessThanOrEqualTo(Long value) {
            addCriterion("end_place_id <=", value, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdIn(List<Long> values) {
            addCriterion("end_place_id in", values, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdNotIn(List<Long> values) {
            addCriterion("end_place_id not in", values, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdBetween(Long value1, Long value2) {
            addCriterion("end_place_id between", value1, value2, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andEndPlaceIdNotBetween(Long value1, Long value2) {
            addCriterion("end_place_id not between", value1, value2, "endPlaceId");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNull() {
            addCriterion("order_no is null");
            return (Criteria) this;
        }

        public Criteria andOrderNoIsNotNull() {
            addCriterion("order_no is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNoEqualTo(String value) {
            addCriterion("order_no =", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotEqualTo(String value) {
            addCriterion("order_no <>", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThan(String value) {
            addCriterion("order_no >", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("order_no >=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThan(String value) {
            addCriterion("order_no <", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLessThanOrEqualTo(String value) {
            addCriterion("order_no <=", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoLike(String value) {
            addCriterion("order_no like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotLike(String value) {
            addCriterion("order_no not like", value, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoIn(List<String> values) {
            addCriterion("order_no in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotIn(List<String> values) {
            addCriterion("order_no not in", values, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoBetween(String value1, String value2) {
            addCriterion("order_no between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andOrderNoNotBetween(String value1, String value2) {
            addCriterion("order_no not between", value1, value2, "orderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoIsNull() {
            addCriterion("sys_order_no is null");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoIsNotNull() {
            addCriterion("sys_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoEqualTo(String value) {
            addCriterion("sys_order_no =", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoNotEqualTo(String value) {
            addCriterion("sys_order_no <>", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoGreaterThan(String value) {
            addCriterion("sys_order_no >", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("sys_order_no >=", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoLessThan(String value) {
            addCriterion("sys_order_no <", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoLessThanOrEqualTo(String value) {
            addCriterion("sys_order_no <=", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoLike(String value) {
            addCriterion("sys_order_no like", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoNotLike(String value) {
            addCriterion("sys_order_no not like", value, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoIn(List<String> values) {
            addCriterion("sys_order_no in", values, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoNotIn(List<String> values) {
            addCriterion("sys_order_no not in", values, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoBetween(String value1, String value2) {
            addCriterion("sys_order_no between", value1, value2, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andSysOrderNoNotBetween(String value1, String value2) {
            addCriterion("sys_order_no not between", value1, value2, "sysOrderNo");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusIsNull() {
            addCriterion("generate_status is null");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusIsNotNull() {
            addCriterion("generate_status is not null");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusEqualTo(Byte value) {
            addCriterion("generate_status =", value, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusNotEqualTo(Byte value) {
            addCriterion("generate_status <>", value, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusGreaterThan(Byte value) {
            addCriterion("generate_status >", value, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("generate_status >=", value, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusLessThan(Byte value) {
            addCriterion("generate_status <", value, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusLessThanOrEqualTo(Byte value) {
            addCriterion("generate_status <=", value, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusIn(List<Byte> values) {
            addCriterion("generate_status in", values, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusNotIn(List<Byte> values) {
            addCriterion("generate_status not in", values, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusBetween(Byte value1, Byte value2) {
            addCriterion("generate_status between", value1, value2, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andGenerateStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("generate_status not between", value1, value2, "generateStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusIsNull() {
            addCriterion("execute_status is null");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusIsNotNull() {
            addCriterion("execute_status is not null");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusEqualTo(Byte value) {
            addCriterion("execute_status =", value, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusNotEqualTo(Byte value) {
            addCriterion("execute_status <>", value, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusGreaterThan(Byte value) {
            addCriterion("execute_status >", value, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("execute_status >=", value, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusLessThan(Byte value) {
            addCriterion("execute_status <", value, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusLessThanOrEqualTo(Byte value) {
            addCriterion("execute_status <=", value, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusIn(List<Byte> values) {
            addCriterion("execute_status in", values, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusNotIn(List<Byte> values) {
            addCriterion("execute_status not in", values, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusBetween(Byte value1, Byte value2) {
            addCriterion("execute_status between", value1, value2, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andExecuteStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("execute_status not between", value1, value2, "executeStatus");
            return (Criteria) this;
        }

        public Criteria andOrderDateIsNull() {
            addCriterion("order_date is null");
            return (Criteria) this;
        }

        public Criteria andOrderDateIsNotNull() {
            addCriterion("order_date is not null");
            return (Criteria) this;
        }

        public Criteria andOrderDateEqualTo(Date value) {
            addCriterionForJDBCDate("order_date =", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("order_date <>", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateGreaterThan(Date value) {
            addCriterionForJDBCDate("order_date >", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("order_date >=", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateLessThan(Date value) {
            addCriterionForJDBCDate("order_date <", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("order_date <=", value, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateIn(List<Date> values) {
            addCriterionForJDBCDate("order_date in", values, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("order_date not in", values, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("order_date between", value1, value2, "orderDate");
            return (Criteria) this;
        }

        public Criteria andOrderDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("order_date not between", value1, value2, "orderDate");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeIsNull() {
            addCriterion("early_delivery_time is null");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeIsNotNull() {
            addCriterion("early_delivery_time is not null");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeEqualTo(Date value) {
            addCriterion("early_delivery_time =", value, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeNotEqualTo(Date value) {
            addCriterion("early_delivery_time <>", value, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeGreaterThan(Date value) {
            addCriterion("early_delivery_time >", value, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("early_delivery_time >=", value, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeLessThan(Date value) {
            addCriterion("early_delivery_time <", value, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeLessThanOrEqualTo(Date value) {
            addCriterion("early_delivery_time <=", value, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeIn(List<Date> values) {
            addCriterion("early_delivery_time in", values, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeNotIn(List<Date> values) {
            addCriterion("early_delivery_time not in", values, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeBetween(Date value1, Date value2) {
            addCriterion("early_delivery_time between", value1, value2, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andEarlyDeliveryTimeNotBetween(Date value1, Date value2) {
            addCriterion("early_delivery_time not between", value1, value2, "earlyDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeIsNull() {
            addCriterion("last_delivery_time is null");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeIsNotNull() {
            addCriterion("last_delivery_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeEqualTo(Date value) {
            addCriterion("last_delivery_time =", value, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeNotEqualTo(Date value) {
            addCriterion("last_delivery_time <>", value, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeGreaterThan(Date value) {
            addCriterion("last_delivery_time >", value, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_delivery_time >=", value, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeLessThan(Date value) {
            addCriterion("last_delivery_time <", value, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_delivery_time <=", value, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeIn(List<Date> values) {
            addCriterion("last_delivery_time in", values, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeNotIn(List<Date> values) {
            addCriterion("last_delivery_time not in", values, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeBetween(Date value1, Date value2) {
            addCriterion("last_delivery_time between", value1, value2, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andLastDeliveryTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_delivery_time not between", value1, value2, "lastDeliveryTime");
            return (Criteria) this;
        }

        public Criteria andTransportUnitIsNull() {
            addCriterion("transport_unit is null");
            return (Criteria) this;
        }

        public Criteria andTransportUnitIsNotNull() {
            addCriterion("transport_unit is not null");
            return (Criteria) this;
        }

        public Criteria andTransportUnitEqualTo(BigDecimal value) {
            addCriterion("transport_unit =", value, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitNotEqualTo(BigDecimal value) {
            addCriterion("transport_unit <>", value, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitGreaterThan(BigDecimal value) {
            addCriterion("transport_unit >", value, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("transport_unit >=", value, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitLessThan(BigDecimal value) {
            addCriterion("transport_unit <", value, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitLessThanOrEqualTo(BigDecimal value) {
            addCriterion("transport_unit <=", value, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitIn(List<BigDecimal> values) {
            addCriterion("transport_unit in", values, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitNotIn(List<BigDecimal> values) {
            addCriterion("transport_unit not in", values, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("transport_unit between", value1, value2, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andTransportUnitNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("transport_unit not between", value1, value2, "transportUnit");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentIsNull() {
            addCriterion("apply_department is null");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentIsNotNull() {
            addCriterion("apply_department is not null");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentEqualTo(String value) {
            addCriterion("apply_department =", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotEqualTo(String value) {
            addCriterion("apply_department <>", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentGreaterThan(String value) {
            addCriterion("apply_department >", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentGreaterThanOrEqualTo(String value) {
            addCriterion("apply_department >=", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentLessThan(String value) {
            addCriterion("apply_department <", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentLessThanOrEqualTo(String value) {
            addCriterion("apply_department <=", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentLike(String value) {
            addCriterion("apply_department like", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotLike(String value) {
            addCriterion("apply_department not like", value, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentIn(List<String> values) {
            addCriterion("apply_department in", values, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotIn(List<String> values) {
            addCriterion("apply_department not in", values, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentBetween(String value1, String value2) {
            addCriterion("apply_department between", value1, value2, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andApplyDepartmentNotBetween(String value1, String value2) {
            addCriterion("apply_department not between", value1, value2, "applyDepartment");
            return (Criteria) this;
        }

        public Criteria andEntrySourceIsNull() {
            addCriterion("entry_source is null");
            return (Criteria) this;
        }

        public Criteria andEntrySourceIsNotNull() {
            addCriterion("entry_source is not null");
            return (Criteria) this;
        }

        public Criteria andEntrySourceEqualTo(Byte value) {
            addCriterion("entry_source =", value, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceNotEqualTo(Byte value) {
            addCriterion("entry_source <>", value, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceGreaterThan(Byte value) {
            addCriterion("entry_source >", value, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceGreaterThanOrEqualTo(Byte value) {
            addCriterion("entry_source >=", value, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceLessThan(Byte value) {
            addCriterion("entry_source <", value, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceLessThanOrEqualTo(Byte value) {
            addCriterion("entry_source <=", value, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceIn(List<Byte> values) {
            addCriterion("entry_source in", values, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceNotIn(List<Byte> values) {
            addCriterion("entry_source not in", values, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceBetween(Byte value1, Byte value2) {
            addCriterion("entry_source between", value1, value2, "entrySource");
            return (Criteria) this;
        }

        public Criteria andEntrySourceNotBetween(Byte value1, Byte value2) {
            addCriterion("entry_source not between", value1, value2, "entrySource");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameIsNull() {
            addCriterion("identification_name is null");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameIsNotNull() {
            addCriterion("identification_name is not null");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameEqualTo(String value) {
            addCriterion("identification_name =", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameNotEqualTo(String value) {
            addCriterion("identification_name <>", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameGreaterThan(String value) {
            addCriterion("identification_name >", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameGreaterThanOrEqualTo(String value) {
            addCriterion("identification_name >=", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameLessThan(String value) {
            addCriterion("identification_name <", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameLessThanOrEqualTo(String value) {
            addCriterion("identification_name <=", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameLike(String value) {
            addCriterion("identification_name like", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameNotLike(String value) {
            addCriterion("identification_name not like", value, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameIn(List<String> values) {
            addCriterion("identification_name in", values, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameNotIn(List<String> values) {
            addCriterion("identification_name not in", values, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameBetween(String value1, String value2) {
            addCriterion("identification_name between", value1, value2, "identificationName");
            return (Criteria) this;
        }

        public Criteria andIdentificationNameNotBetween(String value1, String value2) {
            addCriterion("identification_name not between", value1, value2, "identificationName");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}